var fn_index = async (ctx,next)=>{
    ctx.response.body=`<h1>Index</h1>
                        <form action="/user/register" method="post">
                            <p>Name: <input name="account" value="koa"></p>
                            <p>Password: <input name="password" type="password" value="123"></p>
                            <p>course1: <input name="course1" value="php"></p>
                            <p>class1: <input name="class1_1" value="01"></p>
                            <p>class2: <input name="class1_2" value="02"></p>
                            <p>course2: <input name="course2" value="java"></p>
                            <p>class1: <input name="class2_1" value="01"></p>
                            <p><input type="submit" value="Submit"></p>
                        </form>`
}

var fn_student = async (ctx,next)=>{
    ctx.response.body=`<h1>student</h1>
                        <form action="/user/studentRes" method="post">
                            <p>account: <input name="account" value="1440624151"></p>
                            <p>password: <input name="password" type="password" value="123"></p>
                            <p>name: <input name="name" value="student1"></p>
                            <p>course1: <input name="course1" value="php"></p>
                            <p>course2: <input name="course2" value="node.js"></p>
                            <p>course3: <input name="course3" value="c++"></p>
                            <p><input type="submit" value="Submit"></p>
                        </form>`
}

var fn_class = async (ctx,next)=>{
    ctx.response.body=`<h1>Class</h1>
                        <form action="/class/cteateClass" method="post">
                            <p>className: <input name="className" value="php"></p>
                            <p>teacher: <input name="teacher" value="Ghost"></p>
                            <p>classNum: <input name="classNum" value="01"></p>
                            <p>account1: <input name="account1" value="1440624151"></p>
                            <p>name1: <input name="name1" value="嗯嗯嗯"></p>
                            <p>account2: <input name="account2" value="1440624152"></p>
                            <p>name2: <input name="name2" value="哈哈哈"></p>
                            <p><input type="submit" value="Submit"></p>
                        </form>`
}

module.exports = {
    'GET /': fn_index,
    'GET /class': fn_class,
    'GET /student': fn_student,
}